﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Spotted.DBReference;
using System.Collections.Generic;

namespace Spotted
{
    public class LoggedUser
    {
        public SUser CurrentUser { get; set; }
        public Dictionary<int, List<SImage>> AllUserImagesPerSpot { get; set; }
        public List<SSpot> UserSpots { get; set; }
        public List<SSpot> UserSpotsFront { get; set; }
        public List<SSpot> UserSpotsBack { get; set; }



        public void setUserSpots_Front_Back()
        {
            foreach(var spotData in UserSpots)
            {
                if(spotData.frontORback == true)
                {
                    UserSpotsFront.Add(spotData);

                }

                if(spotData.frontORback == false)
                {
                    UserSpotsBack.Add(spotData);
                }
            }
        }
        
    }
}
